﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Citas.Dominio.Paciente>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Crear
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%  Html.RenderPartial("menuCitas"); %>
  
    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Campos</legend>           
                    
            
            <div class="editor-label">
                Tipo de Documento
            </div>
            <div class="editor-field"> 
                <%: Html.DropDownList("TipoDocumento", (IEnumerable<SelectListItem>)TempData["TipoDocumento"])%>
            </div>
            
            <div class="editor-label">
                N° documento
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.NumeroDocumento) %>
                <%: Html.ValidationMessageFor(model => model.NumeroDocumento) %>
            </div>
            
            <div class="editor-label">
                Apellido paterno:
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.ApellidoPaterno) %>
                <%: Html.ValidationMessageFor(model => model.ApellidoPaterno)%>
            </div>

            <div class="editor-label">
                Apellido materno:
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.ApellidoMaterno) %>
                <%: Html.ValidationMessageFor(model => model.ApellidoMaterno)%>
            </div>

              <div class="editor-label">
                <%: Html.LabelFor(model => model.Nombres) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Nombres) %>
                <%: Html.ValidationMessageFor(model => model.Nombres) %>
            </div>
            
            <p>
                <input type="submit" value="Crear" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Regresar a la lista", "Index")%>
    </div>

</asp:Content>

